home *** CD-ROM | disk | FTP | other *** search
- /*
- File: NavigationServicesSupport.h
-
- Copyright: © 1997-1998 by Apple Computer, Inc., all rights reserved.
-
- */
-
- #include <Files.h>
- #include <Navigation.h>
-
-
- #define dontSaveChanges 3
-
-
-
- OSStatus OpenFileDialog(OSType applicationSignature, short numTypes, OSType typeList[], NavEventProcPtr eventProc, FSSpec* fileSpec, OSType* fileType);
- // Displays the NavGet dialog and returns the selected file location.
- // To enable multiple document opening through AppleEvents pass NULL as the fileSpec anf fileType.
-
-
-
- short ConfirmSaveDialog(StringPtr documentName, Boolean quitting, NavEventProcPtr eventProc);
- // Displays the save confirmation dialog anmd returns {ok, cancel, dontSaveChanges}
-
-
-
- OSStatus SaveFileDialog(StringPtr fileName, OSType filetype, OSType fileCreator, NavEventProcPtr eventProc, FSSpec* fileSpec, Boolean* stationery, Boolean* replacing, NavReplyRecord* reply);
- // Displays the NavPut dialog and returns the selected file location and replacing info.
-
-
-
- OSStatus CompleteSave(const FSSpec* fileSpec, NavReplyRecord* reply);
- // Call this routine after savibg a document passing back the fileSpec and reply returned by SaveFileDialog
- // This call performs any file tranlation needed and disposes the reply
-
-
-
- pascal void MyEventProc(const NavEventCallbackMessage callBackSelector,
- NavCBRecPtr callBackParms,
- NavCallBackUserData callBackUD);
- // Callback to handle event passing betwwn the navigation dialogs and the applicatio